#pragma GCC optimize(2)
#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <map>
#include <unordered_map>
#include <vector>
#include <set>
#include <queue>

using namespace std;
using LL = long long;
using PII = pair<int, int>;


int main(){
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    string s1, s2;

    cin >> s1 >> s2;

    if(s1.find(s2) != string::npos){
        cout << "Yes" << '\n';
    }else{
        cout << "No" << '\n';
    }


    return 0;
}